<!DOCTYPE html>
<?php

require_once ('conn.php');
require_once ('top.php');
if($_SESSION['role']==1){
      Header("Location:index.php"); 
    }elseif($_SESSION['role']==3){
           Header("Location:dotlistMaster.php"); 
   }
?>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>优易购</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <script src="js/jquery-1.11.0.min.js"></script>
</head>
<body>
    <div class="top">
        <span>补货人员 - 网点</span>
        <div class="tright"><span class="outlogin">退出登陆</span></div>
    </div>
    
    
    <?php
    $result=mysql_query("select * from ci_contact where disable=0 and isDelete=0 and bhstaffid=".$_SESSION['userid']); 
  
    while($row=mysql_fetch_array($result)) 
    {
        $num = mysql_fetch_row(mysql_query("select count(*) from ci_wdgoods where contactNumber='".$row['number']."'"));//获得网点编号
        $num = $num[0];
     $i++;
   ?>
   
   
    
    <div class="list2">
        <div class="list90">
            <div class="dingwei">
                <img src="img/qi.png" alt="">
                <span><?=$row['name']?></span>
            </div>
            <div class="shuju">
               <div class="heng">商品种类：<span class=""><?=$num?></span></div>
               
               <a href="supply_pandian_info.php?contactNumber=<?=$row['number']?>">
                   <div class="addpandian">
                       开始盘点
                   </div>
               </a>
            </div>
            
            
        </div>
    </div>

    <?php
    }
    ?>
    
    <div style=" width:100%;height:100px; float:left;"></div>
    <div class="foot">
        <a href="supply_index.php">
        <div>
        <img src="img/f11.png" alt="">
        <p>首页</p>
        </div>
        </a>
        <div class="footon">
        <img src="img/f2.png" alt="">
        <p>网点</p>
        </div>
        <a href="supply.php">
        <div>
        <img src="img/f33.png" alt="">
        <p>补货</p>
        </div>
        </a>
    </div>
    
</body>
<script src="js/outlogin.js"></script>

</html>